import tkinter 
from tkinter import *
def a():
    listb.insert(0,"12")
    listb.pack()          



window = tkinter.Tk()
window.title("12")
window.geometry("300x500")
l=tkinter.Label(window,
   text='23478',
   bg="white",
   font=('Arial',12)
   )
l.pack()
li     = ['C','python','php','html','SQL','java']
movie  = ['CSS','jQuery','Bootstrap']
listb  = Listbox(window)          #  创建两个列表组件
listb2 = Listbox(window)
b=Button(window,text="12",command=a)
for item in li:                 # 第一个小部件插入数据
    listb.insert(0,item)
 
for item in movie:              # 第二个小部件插入数据
    listb2.insert(0,item)
 
listb.pack()                    # 将小部件放置到主窗口中
listb2.pack()
b.pack()




window.mainloop()